fix(code-reviews): show model, session, and live events while a review is running - #5342
Merged
eshurakov merged 2 commits intoAug 18, 2026
Merged
Conversation
Contributor
Author
Code Review SummaryStatus: 3 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (10 files)
Fix these issues in Kilo Cloud Reviewed by grok-4.6 · Input: 265K · Output: 28.2K · Cached: 780.7K Review guidance: REVIEW.md from base branch |
This change ensures that the model selected for a code review is persisted during dispatch and correctly resolved/displayed in the UI, even if it hasn't been written to the review record yet. - Persist the selected model in the database when a review is dispatched. - Implement `selectedModelFromReviewSources` to resolve the effective model from persisted data, repository overrides, or default configs. - Update the code review router to return the resolved model in the API response. - Display the session ID and model in the `CodeReviewDetailClient` UI. - Refactor code review stream event handling into a dedicated utility module. - Add comprehensive tests for model selection logic, dispatch persistence, and router responses.
Keyed tool parts now replace the existing log line instead of appending every status tick, and text parts wait until they complete. GET uses billing usage for terminal reviews and only falls back to the current config while a review is still in flight.
kilo-code-bot
Bot
force-pushed
the
session/agent_0147d4b7-5e8e-443e-8cd0-d4443fab0da3
branch
from
August 18, 2026 19:55
9639c7b to
40d4c88
Compare
iscekic
approved these changes
Aug 18, 2026
eshurakov
deleted the
session/agent_0147d4b7-5e8e-443e-8cd0-d4443fab0da3
branch
August 18, 2026 20:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
codeReviews.getso the review detail page can show it while a run is still in flight.part.stateas a string andpart.name; the live payload uses{ status }andpart.tool, so events only appeared after completion from the historical snapshot.Test plan
/code-reviews/<id>?attemptId=<running-attempt>while a review is running and confirm the selected model and session ID are visible.apps/webtests:code-review-stream-events,model-selection,dispatch-pending-reviews,code-reviews-router(not run here — Postgres was unavailable).